<template>
	<view>
		<view class="ml30 radius16 bac_f mr30 dis_flex mt26 pl24" style="height: 136rpx;" v-for="(item, index) in assco_list" :key="index" @click="AssocClick(item)">
			<view class="tf32 fw ">{{ item.name }}</view>
			<!-- <view class="w40 h40 radius501 border1" style="margin-right: 34rpx;" :class="{ active: cur_id == item.id }"></view> -->
		</view>
	</view>
</template>

<script>
import { xiehuiList } from '@/config/api.js';
export default {
	data() {
		return {
			assco_list: [],
		};
	},
	onLoad() {
		this.getAssocList();
	},
	methods: {
		//点击
		AssocClick(item){
			uni.navigateTo({
				url:'../assocDetail/assocDetail?id='+item.id
			})
		},
		//获取协会列表
		getAssocList() {
			xiehuiList().then(res => {
				this.assco_list = res;
			});
		}
	}
};
</script>

<style lang="scss" scoped>
</style>
